-module('string_list').

-include_lib("eunit/include/eunit.hrl").

single_test_() ->
    ?_assertMatch(
      {yamerl_parser,
        string,
        [],
        <<>>,
        19,
        true,
        [],
        0,
        20,
        4,
        2,
        false,
        4,
        2,
        utf8,
        false,
        undefined,
        _,
        _,
        [],
        {bcoll,root,0,-1,1,1,-1,1,1},
        false,
        false,
        false,
        [{impl_key,false,false,undefined,undefined,1,1}],
        false,
        false,
        _,
        [],
        0,
        11,
        10,
        undefined,
        undefined,
        _,
        false,
        [],
        [
          {yamerl_stream_end,4,2},
          {yamerl_doc_end,4,2},
          {yamerl_collection_end,4,1,flow,sequence},
          {yamerl_scalar,3,3,
            {yamerl_tag,3,3,{non_specific,"?"}},
            flow,plain,"two"},
          {yamerl_sequence_entry,3,3},
          {yamerl_scalar,2,3,
            {yamerl_tag,2,3,{non_specific,"?"}},
            flow,plain,"one"},
          {yamerl_sequence_entry,2,3},
          {yamerl_collection_start,1,1,
            {yamerl_tag,1,1,{non_specific,"?"}},
            flow,sequence},
          {yamerl_doc_start,1,1,{1,2},_},
          {yamerl_stream_start,1,1,utf8}
        ]
      },
      yamerl_parser:string("[\r\n  one,\r\n  two\r\n]")
    ).
